package com.mux.springboot.controller;

import javax.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 
* @ClassName: ThymeleafController 
* @Description: TODO 
* @author chen chengxue 
* @date 2017年5月18日 下午6:17:23 
*
 */
@Controller
@RequestMapping("/thymeleaf")
public class ThymeleafController {
	
	@RequestMapping("/index")
	public String index(Model model,HttpSession session){
		model.addAttribute("user","devin");
		session.setAttribute("user","devin2");
		return "index";
	}

}
